/**
 * Created by benbenlee on 16/2/27.
 */
(function($,window) {
    var MapManager = {

        mapinit: function() {
            var winddowArr = [];
            var marker = [];
            var mapObj = new AMap.Map('gmap', {
                resizeEnable: true,
                view: new AMap.View2D({
                    resizeEnable: true,
                    zoom: 13
                }),
                keyboardEnable: false
            });
            var clickEventListener = AMap.event.addListener(mapObj, 'click', function (e) {
                var lngX = e.lnglat.getLng();
                var latY = e.lnglat.getLat();
                $("#longitude").val(lngX);
                $("#latitude").val(latY);
            });
        },
    };
    window.MapManager = MapManager;
}(jQuery,window));